﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderComplainTypeList.aspx.cs" Inherits="WebSite.admin.order.orderComplainTypeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>阳澄湖牌 </title>
       <link href="../css/skin.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" language="javascript">
       var i = 1
       function addFile() {
           if (i < 8) {
               var str = '<BR>&nbsp;&nbsp;&nbsp; 留言类别：<input name="text" type="text" maxlength="20" />'
               document.getElementById('MyFile').insertAdjacentHTML("beforeEnd", str)

           }
           else {
               alert("您一次最多只能上传条！")
           }
           i++
       } 
   </script> 
</head>
<body class="body">
    <form id="form1" runat="server" >

  <table width="100%" border="0" style=" margin:20px 0 0 50px;" cellpadding="0" cellspacing="0"  >
    <!-- 图片列表 -->
    <tr>
      <td>
      <asp:DataList ID="DataList1" runat="server" RepeatColumns="1" CellPadding="4" Height="30px" Width="100%">
       <ItemTemplate>
               <a href="javascript:;" onclick="if (confirm('您确实要删除该类别吗？')) window.location.href='compain_type.aspx?mid=<%# DataBinder.Eval(Container.DataItem, "compainId")%>&amp;action=del';">[-]</a>
               留言类别：<input value="<%# DataBinder.Eval(Container.DataItem, "CompainName")%>"  name="content_<%# DataBinder.Eval(Container.DataItem, "CompainId")%>" id="content_<%# DataBinder.Eval(Container.DataItem, "compainid")%>"/>
        </ItemTemplate>
      </asp:DataList>    
              </td>
          </tr>
    <!-- 上传图片 -->
    <tr>
      <td>
        <P id="MyFile">
      <a onclick="addFile()" href="#">[+]</a> 留言类别：<input name="text" type="text"  maxlength="20" />
        </P>
        </td>
    </tr>
    <tr>
      <td height="50" align="center">
     
            <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click" /></td>
    </tr>
  </table>


    </form>
</body>
</html>
